#encoding=utf-8
import redis


def getRedisClient():
    redispool = redis.ConnectionPool(host='localhost', port=6379, decode_responses=True)
    client=redis.Redis(connection_pool=redispool)
    return client

def writeToRedis(value):
    getRedisClient().lpush("proxyips", value)


print getRedisClient().lpop("proxyips")

